package com.aaa.backsystem.service;

import com.aaa.backsystem.entity.EchartsDataBo;
import com.aaa.backsystem.entity.Sale;
import com.baomidou.mybatisplus.service.IService;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author gyc
 * @since 2020-07-23
 */
public interface SaleService extends IService<Sale> {
    List<EchartsDataBo> findBathSale(String year,Integer userId);

    /**
     * 查询所有卖出散装油年份
     * @return
     */
    List<Sale> findBuyYear(Integer userId);

    /**
     * 散装油月度销售记录
     * @return
     */
    List<EchartsDataBo> OilMonthlySales(String year);
}
